package cn.tk.repository.mr;

import cn.tk.model.entity.mr.FlowEdge;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by denglw on 2021/8/2.<br/>
 * Desc: 流程连线 dao
 */
@Repository
public interface FlowEdgeDao extends JpaRepository<FlowEdge, Long> {

    /**
     * 获取所有记录.<br/>
     * @return list
     */
    @Override
    @Query(value = "select * from mr_bot_flow_edge where deleted=0 and disabled=0", nativeQuery = true)
    List<FlowEdge> findAll();
}
